home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 007a / cug315.zip / KEYS.H < prev    next >
C/C++ Source or Header  |  1990-05-16  |  1KB  |  28 lines

  1.  
  2. /* keys.h defines constant names for extended key values.  By T. Clune, 4/88 */
  3.  
  4. #ifndef KEYS_H
  5. #define KEYS_H
  6.  
  7. #define ALT '\0'    /* alternate character marker for cursor control keys */
  8. #define PGUP '\111'  /* 0:73(decimal) = PgUp key */
  9. #define PGDN '\121'  /* 0:81(decimal)=PgDn */
  10. #define END '\117'  /* 0:79(decimal)=End */
  11. #define HOME '\107' /* 0:71(decimal)=Home */
  12. #define UPARROW '\110' /* 0:72 (decimal)=Up arrow */
  13. #define DOWNARROW '\120' /* 0:80 (decimal)=down arrow */
  14. #define LEFTARROW '\113' /* 0:75 (decimal)=left arrow */
  15. #define RIGHTARROW '\115' /* 0:77(decimal)=right arrow */
  16. #define INSERT  '\122'  /* 0:82(decimal)=Ins */
  17. #define DELETE  '\123'  /* 0:83(decimal)=Del */
  18.  
  19.     /* non-extended codes of interest */
  20. #define ESCAPE '\033'   /* ESC=27 decimal */
  21. #define CARRIAGE_RETURN '\15'   /* <CR>=13(decimal) */
  22. #define TAB_KEY '\011'  /* TAB=9 decimal */
  23. #define SPACEBAR '\040' /* spacebar=32 decimal */
  24. #define BACKSPACE '\010' /* backspace=8 decimal */
  25.  
  26. #endif
  27.  
  28.